import request from '@/utils/request'

// 查询列表
export function listPaymentOrder(query) {
  return request({
    url: '/orderManage/paymentOrder/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getPaymentOrder(id) {
  return request({
    url: '/orderManage/paymentOrder/getById?id=' + id,
    method: 'get'
  })
}

// 新增
export function addPaymentOrder(data) {
  return request({
    url: '/orderManage/paymentOrder/add',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePaymentOrder(data) {
  return request({
    url: '/orderManage/paymentOrder/edit',
    method: 'put',
    data: data
  })
}
